package org.zqy.service;

import org.zqy.domain.User;

public interface UserService {

	/** 判断帐号、密码是否正确,用来判断是哪个部门的管理员 */
	public boolean isRight(String uaccount, String password);

	/**
	 * 添加用户
	 * 
	 * @param user
	 * @return
	 */
	public boolean addUser(User user);

	/**
	 * 删除用户
	 * 
	 * @param uid
	 * @return
	 */
	public boolean deleteUser(User user);

	/**
	 * 修改用户信息
	 * 
	 * @param uid
	 * @param user
	 * @return
	 */
	public boolean updateUser(User user);
}
